package com.lwj.controller.system;

import com.lwj.dto.system.MySQLDto;
import com.lwj.service.system.MySQLService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/mysql")
public class MySQLController {
    @Autowired
    private MySQLService mySQLService;
    @GetMapping("/selectColumn")
    public List<String> selectColumn(MySQLDto mySQLDto) {
        return mySQLService.selectColumn(mySQLDto);
    }
    @GetMapping("/selectTables")
    public List<String> selectTables(MySQLDto mySQLDto) {
        return mySQLService.selectTables(mySQLDto);
    }
}
